Document::Close

Section: ET++ method description (n)
Updated: automatically Fri Mar 15 14:13:05 1991
Index Return to Main Contents
 

NAME

Document::Close - instance method  

TEMPLATE

documentIsClosed = bool Close()  

SPECIFIERS

public virtual  

DESCRIPTION

Close tries to close the document. First, if the document is modified (which is checked by the method AlertChanges), the user is asked whether to save changes, discard them or cancel the close. If the document is not modified or the changes have been saved successfully all the windows in instvar windows are closed, the document is removed from the application by the method Application::RemoveDocument and TRUE is returned. If the user cancels the close or the method Save is not successful the return value is FALSE. Method is rarely overridden.  

ARGUMENTS

none

 

RETURN ARGUMENT

bool documentIsClosed

indicates whether the document has actually been closed
 

CATEGORIES

menu commands, client interface

 

FIRST DEFINITION

class Document  

FILES

implementation:
Document.C


 

Index

NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FIRST DEFINITION
FILES

This document was created by man2html, using the manual pages.
Time: 00:40:28 GMT, March 30, 2022